<template>

<div>
  <el-row>
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ name: 'NewHome' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>授权管理</el-breadcrumb-item>
      <el-breadcrumb-item>授权记录</el-breadcrumb-item>
    </el-breadcrumb>
  </el-row>

  <el-form ref="form" :model="form" label-width="80px">
    <el-form-item label="玩家ID">
      <el-input v-model="form.name"></el-input>
    </el-form-item>
    <el-form-item label="上级ID">
      <el-input v-model="form.name"></el-input>
    </el-form-item>
    <el-form-item label="Line">
      <el-input v-model="form.name"></el-input>
    </el-form-item>
    <el-form-item label="授权时间">
      <el-input v-model="form.name"></el-input>
    </el-form-item>
    <el-form-item label="姓名">
      <el-input v-model="form.name"></el-input>
    </el-form-item>
    <el-form-item label="手机号">
      <el-input v-model="form.name"></el-input>
    </el-form-item>
    <el-form-item label="备注">
      <el-input type="textarea" v-model="form.desc"></el-input>
    </el-form-item>
    <el-form-item>
      <el-button-group>
        <el-button type="danger" icon="el-icon-close">禁用</el-button>
        <el-button type="primary" icon="el-icon-check">解禁</el-button>
      </el-button-group>
    </el-form-item>
  </el-form>
</div>

</template>

<style scoped>
  .el-row {
    margin-bottom: 16px;
  }
  .el-col {
    margin-bottom: 8px;
  }
</style>

<script>
  export default {
    data () {
      return {
        value3: true,
        form: {
          name: '',
          region: '',
          date1: '',
          date2: '',
          delivery: false,
          type: [],
          resource: '',
          desc: ''
        }
      }
    },
    methods: {
      handleTools () {
        if (this.tools) {
          this.tools = false
        } else {
          this.tools = true
        }
      },
      onSubmit () {
        console.log('submit!')
      }
    }
  }
</script>
